package it.unical.canonaco.rende.igpe.game.cbv.guilayer.gamemanagermenu.storemenu.charshop;

import java.util.HashMap;

import it.unical.canonaco.rende.igpe.game.cbv.guilayer.components.ImageCache;
import it.unical.canonaco.rende.igpe.game.cbv.guilayer.gamemanagermenu.storemenu.CharInfoPanel;
import it.unical.canonaco.rende.igpe.game.cbv.guilayer.guievents.CharacterClickEvent;
import it.unical.canonaco.rende.igpe.game.cbv.guilayer.guievents.GraphicEvent;
import it.unical.canonaco.rende.igpe.game.cbv.guilayer.guievents.GraphicEventManager;
import it.unical.canonaco.rende.igpe.game.cbv.guilayer.guievents.ShopCharClickEvent;
import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.managers.StoreManager;

public class CharSpellInfoPanel extends CharInfoPanel {

	public CharSpellInfoPanel(final GraphicEventManager gem, final StoreManager storeManager, HashMap<String,String> settings,
			 ImageCache imgCache)  {
		super(gem,storeManager,settings,imgCache);
	
	}
	
	@Override
	public void notify(GraphicEvent event) {

if( event.getClass() == ShopCharClickEvent.class) {
			
	ShopCharClickEvent scce= (ShopCharClickEvent) event;
			printCharStats(scce.getClickedChar());
			repaint();
					
		}
	
	}
	
	@Override
	protected void setListeners() {
		gem.addListener(this, ShopCharClickEvent.class);
	}

}
